<?php
/**
 * ToolsMerchantRateForm class.
 */
class SysMerchantRateForm extends CActiveRecord
{
	/**
	 * Returns the static model of the specified AR class.
	 * @return ShopProfile the static model class
	 */
	public static function model($className = __CLASS__) {
		return parent::model($className);
	}

	/**
	 * @return string the associated database table name
	 */
	public function tableName() {
		return 'tbl_sys_merchant_rate';
	}

	/**
	 * Declares the validation rules.
	 */
	public function rules() {
		return array(
			array('interest_rate, comments', 'required'),
			array('interest_rate, comments', 'safe'),
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels() {
		return array(
			'interest_rate' => 'Interesting rank',
			'comments' => 'Comments',
		);
	}
}
